package com.xtwy.fegin.api;

import com.xtwy.config.FeignConfig;
import com.xtwy.fegin.api.impl.FeginHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @作 者: 侯建军
 * @日 期: 2018/8/4 00:04
 * @描 述:
 * @公 司：山西迅腾伟业
 */
@Component
@FeignClient(value = "rx-order", configuration = FeignConfig.class, fallback = FeginHystrix.class)
public interface FeignApiService {
    @GetMapping(value = "/order")
    String order(@RequestParam(value = "name") String name);
}

